package com.gxa.pingan.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Author ChenJin
 * @date 2021/10/25 11:09
 * Description:
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("Banner")
public class Banner implements Serializable {

    /**
     * banner编号
     */
    @ApiModelProperty(name = "id",value = "id",example = "banner编号",dataType = "Long")
    private Long id;

    /**
     * 排序序号
     */
    @ApiModelProperty(name = "rank",value = "rank",example = "排序序号",dataType = "Integer")
    private Integer rank;

    /**
     * 标题
     */
    @ApiModelProperty(name = "name",value = "name",example = "标题",dataType = "String")
    private String name;

    /**
     *  图片
     */
    @ApiModelProperty(name = "img",value = "img",example = "图片",dataType = "String")
    private String img;

    /**
     * 链接地址
     */
    @ApiModelProperty(name = "url",value = "url",example = "链接地址",dataType = "String")
    private String url;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "regTime",value = "regTime",example = "创建时间",dataType = "Timestamp")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp regTime;

    /**
     * 默认为零
     */
    @ApiModelProperty(name = "count",value = "count",example = "默认为零",dataType = "Integer")
    private Integer count;

    /**
     * 是否可见
     */
    @ApiModelProperty(name = "inUsed",value = "inUsed",example = "是否可见",dataType = "Boolean")
    private Boolean inUsed;
}
